Welcome Guest, Not a member yet? Register   Sign In
Help me about playlist
#1

I'm trying to do one music website but having 2 issues this:
- First, I use the jwplayer to create playlists, playlist everything is fine but do not automatically transfer all
- Second: I read the contents of the file to get the playlist file, but PHP to ignore all characters after the "<". For example, the contents of the file is "playlist <track> jhvbhjbj" it only shows up when the file is read "playlist" only.
I've tried everything but still does not solve the second problem, people who know they help me with. Thanks !!!
Reply
#2

No idea without any code to look at...
Reply
#3

<?php echo html_escape("playlist <track> jhvbhjbj"); ?>
Reply
#4

(03-21-2015, 01:42 PM)ivantcholakov Wrote: <?php echo html_escape("playlist <track> jhvbhjbj"); ?>

Thank you so much, I did it. Using the html_escape (), but do not know its specific uses like (I've searched online but did not see), but it also brought the desired effect.
Reply
#5

The second problem was solved by ivantcholakov, thanks you so much, and the first problem someone help me. I did as instruction but it is not correct. Here is the code show jwplayer play music :
Code:
<fieldset style="width: 550px; margin-left: 370px">
    <legend><b>Demo playlist</b></legend>
    <div >
            <span class="right">
                <embed style=" margin: 10px 10px 10px 10px"
                    type="application/x-shockwave-flash"
                    id='MediaPlayer'
                    name='MediaPlayer'
                    quality="high"
                    src='<?php echo base_url();?>public/jwplayer/player.swf'
                    width='550'
                    height='300'          
                    allowscriptaccess='always'
                    allowfullscreen='true'
                    flashvars='file=<?php echo base_url();?>list1.xml &playlist=bottom &playlistsize=80 &autostart=1 &smoothing=1'
                    
                />
            </span>
    </div>            
</fieldset>

No matter what with file list.xml, but jwplayer does not automatically transfer all !!
Reply
#6

You should probably use PHP's XML Parser to handle the contents of the playlist if it's an XML file...
http://php.net/manual/en/book.xml.php

It may take a little more time to figure out how to read and manipulate the data using the parser, but, in the end, it will probably give you fewer issues.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB