Sorry, I should have added that the normal use case will be to list all the 
<mySource> directives by using ng-repeat and setting the array it refers to 
in the controller.  However, I'd also like to be able to support manually 
listing the sources as below.

On Wednesday, September 16, 2015 at 8:12:13 AM UTC+1, mcoupar wrote:
>
> Hi Sander
>
> It's a cross platform video player for various Smart TV platforms.  Each 
> device typically exposes it's own custom video playback API.  So, the real 
> structure looks more like
>
> <myVideo>
>     <mySource ng-attr-src="smooth.ism"></mySource>
>     <mySource ng-attr-src="progressive.mp4></mySource>
> </myVideo>
>
> We want to be able to supply a list of sources to represent various 
> formats of the same video stream.  So, in the example above, any device 
> that support Microsoft Smooth Streaming will attempt to play that first and 
> if it doesn't support it, it will fallback to the progressive mp4 stream.
>
> I need to know when all sources have been linked so that I can trigger the 
> device to open the preferred stream and then optionally autoplay it.
>
> Regards,
> Marc
>
> On Wednesday, September 16, 2015 at 6:48:36 AM UTC+1, Sander Elias wrote:
>>
>> Hi MCoupar,
>>
>> May I ask about your use-case? While this is possible, it's not a small 
>> feat. Also the solution actually might be different depending on the 
>> contents you want to put inside your element. Some stuff inside there might 
>> get put in asynchronous, making this even more challenging. (ngInclude and 
>> directives with an templateUrl being the prime offenders here..)
>>
>> Regards
>> Sander   
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to